package com.botarena.server.dao;

import javax.jdo.PersistenceManager;

import com.botarena.server.model.Account;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

public class AccountDAO extends GenericDAO<Account> { 

	public AccountDAO(PersistenceManager pm) {
		super(pm);
	}
	
	public Key createKey(Account account) {
		return createKey(account.getEmail());
	}
	
	public Key createKey(String email) {
		return KeyFactory.createKey(Account.class.getSimpleName(), email);
	}

}
